#include<stdio.h>

int main(int argc, char *argv[]){
    /** 
     *文件打开 
     */

    char * filename = "test.txt";
    FILE *fp = fopen(filename, "a+");
    if (fp == NULL)
    {
        printf("Can't open file %s\n", filename);
        return -1;
    }
    printf("Open file %s\n", filename);
    
    return 0;
}